<?php 
$cs=Yii::app()->clientScript;
$cssUrl= Yii::app()->request->baseUrl."/css/";
$jsUrl = Yii::app()->request->baseUrl."/js/";
$cs->registerCssFile($cssUrl."ad_form.css");
$cs->registerCssFile($cssUrl."jquery.Jcrop.css");
$cs->registerScriptFile($jsUrl."ad_exec.js");
$cs->registerScriptFile($jsUrl."jquery.form.js");
$cs->registerScriptFile($jsUrl."jquery.Jcrop.js");
?>
<div id="main-col-small" class="div">
	<div class="mainColInner">
		<div class="subPageHeader">
			<h1><?=Yii::t('adv','edit')?></h1>
		</div>
<?php 
$this->renderPartial('_status', array('status'=>$status)); 
$form = $this->beginWidget('CActiveForm', array(
			'id'=>'AdForm',
			'method'=>'post',
//			'enableAjaxValidation'=>true,
			'htmlOptions'=>array('class'=>'ad','enctype'=>'multipart/form-data','status'=>'readonly')));
//$this->renderPartial('_target', array('form'=>$form)); 
$this->renderPartial('_publish', array('form'=>$form,'model'=>$model)); 
$this->renderPartial('_price', array('form'=>$form,'model'=>$model)); 
$this->renderPartial('_quizKeyword', array('form'=>$form,'model'=>$model)); 
echo CHtml::submitButton(Yii::t('default','submit'),array('class'=>'submit btn btn_m','style'=>'display:none;'));
?>
<?php $this->endWidget(); ?>	
	</div>
</div>
<div id="side-col" class="float-right">
<?php 
$this->widget('TagEffect');
$this->widget('AdvRules');
?>
</div>

